# Main dialogue file and game play!
#Coded by Ruairidh Wynne-McHardy

require 'main.rb'

#Sample Story

print begin 
  "Darkness. The moment you watched the disease spread across the continents from the safety of that bunker
  yet there was nothing you could do.  You knew that millions would die, that there would be no going back
  and yet you could not think of a way to stop it "
  end
  sleep 4
print begin 
"\n You have hardly been sleeping and when you do there are only different nightmares to confront. It's
hard to decide whether the worse nightmares are in your waking or sleeping hours. You don't know what you're
going to do, only that you have to do something. But first it's time to sort yourself out; do you even remember who you are?

    "
end
sleep 4
puts "Now if only you could remember what you're called. It's been years since you heard anothers voice. Suddenly you see words appearing on the console screen, letter by letter, spelling something out"
puts "HINT: Name your character"
puts "\n"

name = gets
gamer = Player.new("#{name}",100,"stick",0)
Savefile = File.new("save.txt", "w+")
Savefile.puts "#{gamer.name}"
Savefile.puts "#{gamer.hp}"
Savefile.puts "#{gamer.weapon}"
Savefile.puts "#{gamer.points}"
print begin
"AHA! That's right! Your name is #{name}
Memories are coming back.  Your childhood spent in a appartment in Edinburgh, walks through the Meadows, visits to the Castle and a festival every year.  
\n Happier times... "
  
  evil = Enemy.new("ugh",100,"stick",10)
  puts "Gamer attacks the Enemy!"
  evil.hit(50)
  puts evil.hp
  puts gamer.hp
  if evil.hp <= 0
    puts "Monster is dead"
  puts player.inventory(evil.points)
  end
end
